package com.example.class1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor  //无参构造器
@AllArgsConstructor  //有参构造器
public class Job {

    @TableId(type = IdType.AUTO)
    private Integer jobId;
    private String jobName;

    @TableField(exist = false)
    private List<User> users;
}
